import React, { Component } from 'react';
/* 
属性代理
-添加元素
*/
class Tesing extends Component {
    render() {
        return (
            <div>
                原始元素
            </div>
        );
    }
}
function HigherOrderComponent(WarppedComponent){
    return class Addcss extends Component{
        render (){
            return <div style={{backgroundColor:"red"}}>
                <WarppedComponent></WarppedComponent>
            </div>
        }
    }
}

export default HigherOrderComponent(Tesing);